package com.fihoca.controlhorario.cliente;

import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.JsonNode;
import com.mashape.unirest.http.Unirest;
import com.mashape.unirest.http.exceptions.UnirestException;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args ) throws UnirestException
    {
      HttpResponse<JsonNode> request = Unirest.get("https://controlhorariofihoca-control-horario1.p.mashape.com/horarios/diario/1194&22112013")
          .header("X-Mashape-Authorization", "JJRc5lVEgq1tIjg7X3IR3GIY8cC0IDnj")
          .asJson();
      
      System.out.println(request.getCode());
      
      
    }
}
